# -*- coding:utf-8 -*-
# @Time : 21-7-20 下午1:53 
# @Author : zdy
# @File : SystemConfig.py
# desc:
from Class.Format import Serialization

class DAQ(object):
    def __init__(self):
        # <editor-fold desc="DO">
        self.valveExhauster = 1 #吸尘
        self.valveUpDown = 9
        self.valveBrushFurnace = 6
        self.valveGeneralOxyen = 5
        self.valveEvacuate = 10 #排空冲洗
        self.valveFurnaceRear = 11
        self.valveBackblow = 12
        self.valveLance = 13
        self.valveFurnaceChamber = 14
        self.valveHFPower = 0  #高频灯丝电源
        self.valveEmit = 3  # 排放阀
        # </editor-fold>

        # <editor-fold desc="DI">
        self.DILiftFurnace = 5
        self.DIBrush = 4
        self.DICarrier = 2
        self.DIPneumatic = 3
        self.DIFurnaceRear = 1

        # </editor-fold>

        # <editor-fold desc="AD">
        self.ADBaseline = [2,0,3,1]
        self.ADMFC = 36
        self.ADReformerT = 41
        self.ADPressure = 35
        # </editor-fold>

        # <editor-fold desc="DA">
        self.DAPower = 0
        self.DABaseline = [2,0,3,1]
        self.DAMFC = 2

        # </editor-fold>
        # 采集频率Hz
        self.freq = 5.0
        self.filterC = 1  #滤波系数

class SystemConfig(object):
    def __init__(self):
        self.daq = DAQ()

class Settings(object):
    def __init__(self):
        self.DAQCom = '/dev/ttyUSB0'#'/dev/CSUSB0'
        self.resultcolHidden = [12,13,14,15,18,19,20,21,23]
